package com.bwie.controller;

import com.bwie.service.TbOrderService;
import com.bwie.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Wrj
 * @Date: 2025/4/22 10:29
 * @Description:
 **/
@RestController
@RequestMapping("/order/index")
public class IndexController {

    @Autowired
    TbOrderService tbOrderService;

    @PostMapping("/getOrderById/{id}")
    public R getOrderById(@PathVariable(name = "id") Integer id){
        return tbOrderService.getOrderById(id);
    }
}
